import java.awt.*;

import javax.swing.*;

public class ZeroGUI {

	JFrame mainFrame = new JFrame("Zero");
	
	JLabel text1 = new JLabel("Dieses Programm macht nichts.");
	JLabel text2 = new JLabel("Copyright (c) 1999");
	JLabel text3 = new JLabel("Zerosott AG");
	
	JButton ok = new JButton("OK");
	JButton abbrechen = new JButton("Abbrechen");
	JButton hilfe = new JButton("Hilfe");
	
	JPanel textPanel = new JPanel();
	JPanel buttonPanel = new JPanel();
	
	public void paint() {
		mainFrame.setBackground(Color.lightGray);
		mainFrame.setResizable(false);
		mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		mainFrame.setLayout(new BorderLayout(0, 0));
		textPanel.setLayout(new GridLayout(3, 1, 2, 2));
		buttonPanel.setLayout(new GridLayout(1, 3, 0, 0));
		
		textPanel.add(text1, BorderLayout.NORTH);
		textPanel.add(text2, BorderLayout.CENTER);
		textPanel.add(text3, BorderLayout.SOUTH);
		
		buttonPanel.add(abbrechen, BorderLayout.WEST);
		buttonPanel.add(ok, BorderLayout.CENTER);
		buttonPanel.add(hilfe, BorderLayout.EAST);
		
		mainFrame.add(textPanel, BorderLayout.CENTER);
		mainFrame.add(buttonPanel, BorderLayout.SOUTH);
		mainFrame.setSize(300, 100);
		mainFrame.setVisible(true);
	}
	
	public static void main(String[] args) {
		ZeroGUI gui = new ZeroGUI();
		gui.paint();
	}

}
